package com.xiaohai.wx.weather.service;


import com.xiaohai.wx.weather.dao.WeatherDao;
import com.xiaohai.wx.weather.dto.Weather;
import com.xiaohai.wx.weather.service.WeatherService;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("WeatherService")
public class WeatherService {
	
	@Autowired
	WeatherDao weatherDao;

	Logger logger = Logger.getLogger(this.getClass().getName());
	
	public List<Weather> getWeather(String cityName){
		return weatherDao.getWeather(cityName);
	}
	
}
